package com.hdy.springcloud.service;

import com.hdy.springcloud.mapper.Dept;
import com.hdy.springcloud.mapper.DeptMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeptServiceImpl implements DeptService {

    @Autowired
    private DeptMapper deptMapper;

    public boolean addDept(Dept dept) {
        return deptMapper.addDept(dept);
    }

    public Dept queryDeptById(long id) {
        return deptMapper.queryDeptById(id);
    }

    public List<Dept> queryDeptAll() {
        return deptMapper.queryDeptAll();
    }
}
